// 封装医院设置相关请求的函数
import { request } from '@utils/http'
import { IhospitalSetRes } from './model/hospitalSetTypes'
export function reqGetHospitalSets(
  page: number,
  limit: number,
  hosname?: string,
  hoscode?: string
) {
  // 注意： 如果请求url写的是相对路径，则axios会自动将当前发送请求的html页面的url地址拼接在前面
  return request.get<any, IhospitalSetRes>(
    `/admin/hosp/hospitalSet/${page}/${limit}`,
    {
      params: {
        hosname: hosname,
        hoscode: hoscode,
      },
    }
  )
}
